export const presetTemplates = [
  {
    name: 'Mapper-resultMap模板',
    template: '<result column="{下划线变量}" property="{驼峰变量}" />',
    prefix: '',
    description: 'Mapper-resultMap模板配置',
    defaultConfig: {
      line: 100,
      lineMode: 0,
      rowFillMode: 1,
      lineSplit: '',
      rowInsert: [
        {
          "name": "{驼峰变量}",
          "value": "property"
        },
        {
          "name": "{下划线变量}",
          "value": "column"
        }
      ],
      numberInsert: [
        {
          "name": "{number1}",
          "start": 0,
          "add": 1
        }
      ]
    }
  },
  {
    name: 'Mapper-if模板',
    template: '        <if test="{驼峰变量} != null and {驼峰变量} != \'\'">\n            and {下划线变量} = #{{驼峰变量}}\n        </if>',
    prefix: '',
    description: 'Mapper-if模板配置',
    defaultConfig: {
      line: 100,
      lineMode: 0,
      rowFillMode: 1,
      lineSplit: '',
      rowInsert: [
        {
          "name": "{驼峰变量}",
          "value": "defaultName"
        },
        {
          "name": "{下划线变量}",
          "value": "default_name"
        }
      ],
      numberInsert: [
        {
          "name": "{number1}",
          "start": 0,
          "add": 1
        }
      ]
    }
  },
  {
    name: 'Mapper-insert模板',
    template: '#{listItem.{驼峰变量}} as {下划线变量}',
    prefix: '',
    description: 'Mapper-insert模板配置',
    defaultConfig: {
      line: 100,
      lineMode: 0,
      rowFillMode: 1,
      lineSplit: ',',
      rowInsert: [
        {
          "name": "{驼峰变量}",
          "value": "defaultName"
        },
        {
          "name": "{下划线变量}",
          "value": "default_name"
        }
      ],
      numberInsert: [
        {
          "name": "{number1}",
          "start": 0,
          "add": 1
        }
      ]
    }
  }
]